import Vue from 'vue';
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const routes=[
    {path:"/", redirect:"/message"},
    {path: "/message", component: () => import('@/views/message/index')},
    {path: "/contact", component: () => import('@/views/contact/index')},
    {path: "/find", component: () => import('@/views/find/index')},
    {path: "/me", component: () => import('@/views/me/index')},
]

const router=new VueRouter({
    mode:"history",
    routes
})
export default router